package com.onec.service.api.enums.error;

/**
 * 系统异常编码表
 *
 * @author ONEC
 */
public enum AgentErrorEnum {


    SUCCESS("请求成功", 10000),

    FREEZE("机构号不可用", 2002),

    INVALID("机构号不存在", 2003),

    INVALID_BUS("机构业务未开通", 2004),

    FREEZE_BUS("机构业务异常", 2005),


    FREEZE_MERCHANT_ERROR("机构对应商户信息异常", 2006),

    SERVICE_ERROR("请求服务名异常", 2007),

    REQUEST_ERROR("数据格式请求有误", 2008),

    _ERROR("数据格式请求有误", 2009),

    ;

    private String msg;

    private Integer index;

    AgentErrorEnum(String msg, Integer index) {
        this.msg = msg;
        this.index = index;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }
}
